<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>navigation</title>
    <!--公共的导航栏页面-->
</head>
<body>
<div class="navigation" th:fragment="navigation">

    <!-- begin::navigation menu -->
    <div class="navigation-menu-body">

        <!-- begin::navigation-logo -->
        <div>
            <div id="navigation-logo">
                <a  href="/">
                    <img class="mlogo" style="margin-bottom: 7px" th:src="@{/image/logo.png}" alt="logo">
                    <span style="font-size: 20px;line-height: 29px">煤炭交易平台</span>
                </a>
            </div>
        </div>
        <!-- end::navigation-logo -->

        <div class="navigation-menu-group">

            <div class="open" id="elements">
                <ul>
                    <li class="navigation-divider">工作台</li>
                    <li>
<!--                        <a href="#">公告管理</a>-->
                        <a>公告管理</a>
                        <ul>
                            <li>
                                <a href="/notify/query">公告通知</a>
                            </li>
                            <li th:if="${#session.getAttribute('loginUser') != null and #session.getAttribute('loginUser').role==4}">
                                <a href="/notify/management">公告管理</a>
                            </li>
                            <li th:if="${#session.getAttribute('loginUser') != null and #session.getAttribute('loginUser').role==4}">
                                <a href="/notify/draft">添加公告</a>
                            </li>
                            <li th:if="${#session.getAttribute('loginUser') != null and #session.getAttribute('loginUser').role==4}">
                                <a href="/notify/audit">公告审核</a>
                            </li>
                        </ul>
                    </li>
                    <li  th:if="${#session.getAttribute('loginUser') != null and (#session.getAttribute('loginUser').role==1
                               || #session.getAttribute('loginUser').role==2
                               || #session.getAttribute('loginUser').role==3)
                               }">
<!--                        <a href="#">采购管理</a>-->
                        <!--<a href="#">采购申请管理</a>-->
                        <a>采购管理</a>
                        <ul>
                            <li th:if="${#session.getAttribute('loginUser') != null and #session.getAttribute('loginUser').role==1}">
                                <a href="/user/purchaseManage">发起采购</a>
                            </li>
                            <li th:if="${#session.getAttribute('loginUser') != null and (#session.getAttribute('loginUser').role==3
                                || #session.getAttribute('loginUser').role==2)}">
                                <a th:href="@{/purchaseRequest/list}">采购审批</a>
                            </li>
                        </ul>
                    </li>
                    <li th:if="${#session.getAttribute('loginUser') != null and (#session.getAttribute('loginUser').role==3
                               || #session.getAttribute('loginUser').role==2)}">
<!--                        <a href="#">中标管理</a>-->
                        <a>中标管理</a>
                        <!--<a href="#">采购执行管理</a>-->
                        <ul>
                            <li>
                                <a th:href="@{/purchaseApply/list/purchaseRelease}">中标下达</a>
                            </li>
                            <li>
                                <a th:href="@{/purchaseApply/list}">中标审核</a>
                            </li>
                        </ul>
                    </li>
                    <li  th:if="${#session.getAttribute('loginUser') != null and (#session.getAttribute('loginUser').role==3
                                || #session.getAttribute('loginUser').role==2)}">
                        <a>供应商管理</a>
                        <ul>
                            <li>
                                <a th:href="${'/supplier/queryAllSupplier'}">查看合作供应商</a>
                            </li>
                            <li>
                                <a th:href="${'/supplier/queryCompanyApply'}">供应商申请审核</a>
                            </li>
                            <li>
                                <a href="#">电厂申请审核</a>
                                <ul>
                                    <li>
                                        <a th:href="${'/supplier/queryPowerApply'}">推荐申请审核</a>
                                    </li>
                                    <li>
                                        <a th:href="${'/supplier/queryBlackApply'}">拉黑申请审核</a>
                                    </li>
                                </ul>
                            </li>
                            <li>
                                <a th:href="${'/supplier/queryYearScore'}">年度评价</a>
                            </li>
                        </ul>
                    </li>
                    <li>
<!--                        <a href="#">账户管理</a>-->
                        <a>账户管理</a>
                        <ul>
                            <li>
                                <a href="/user/info">个人信息</a>
                            </li>
                            <li>
                                <a href="/user/company_info">企业信息</a>
                            </li>
                            <li th:if="${#session.getAttribute('loginUser') != null and #session.getAttribute('loginUser').role==0}">
                                <a href="/user/query">用户管理</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
            <br><br><br>
            <div id="pages">
                <ul>
                    <li class="navigation-divider">Pages</li>
                    <li><a href="login.html">Login</a></li>
                    <li><a href="register.html">Register</a></li>
                    <li><a href="recover-password.html">Recovery Password</a></li>
                    <li><a href="lock-screen.html">Lock Screen</a></li>
                    <li><a href="profile.html">Profile</a></li>
                    <li><a href="timeline.html">Timeline</a></li>
                    <li><a href="invoice.html">Invoice</a></li>

                    <li><a href="pricing-table.html">Pricing Table</a></li>
                    <li><a href="search-result.html">Search Result</a></li>
                    <li>
                        <a href="#">Error Pages</a>
                        <ul>
                            <li><a href="404.html">404</a></li>
                            <li><a href="404-2.html">404 V2</a></li>
                            <li><a href="503.html">503</a></li>
                            <li><a href="mean-at-work.html">Mean at Work</a></li>
                        </ul>
                    </li>
                    <li><a href="blank-page.html">Starter Page</a></li>
                    <li>
                        <a href="#">Email Templates</a>
                        <ul>
                            <li><a href="email-template-basic.html">Basic</a></li>
                            <li><a href="email-template-alert.html">Alert</a></li>
                            <li><a href="email-template-billing.html">Billing</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">Menu Level</a>
                        <ul>
                            <li>
                                <a href="#">Menu Level</a>
                                <ul>
                                    <li>
                                        <a href="#">Menu Level </a>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- end::navigation menu -->

</div>
</body>
</html>